﻿using MengCC.Plugin.SDK;
using System;

namespace MengCC.Plugin.SVN
{
    class Program
    {
        static void Main(string[] args)
        {

            PluginContext pluginContext = new PluginContext(args);
            var options = pluginContext.GetOptions<Options>();
            Console.WriteLine("正在同步...");
            var downloader = new SVNDownloader(options.UserName, options.Password, options.RemoteUrl);
            downloader.Download(pluginContext.Wordspace, options.RemoteUrl).Wait();
            downloader.Wait();
            Console.WriteLine("同步完成...");


        }
    }
}
